/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package it.unibo.as.client;

import java.io.Serializable;

/**
 *
 * @author lilith
 */
public class Common implements Serializable
{
    
    
    public final static int TABLEGAME_INIT      = 0;
    public final static int TABLEGAME_PLAY      = 1;
    public final static int TABLEGAME_EVWIN     = 2;
    public final static int TABLEGAME_END       = 3;
    public final static int TABLEGAME_TERMINATE = 4;
    
    public final static int PLAYER_NUM          = 4;
    public static final int CARD_NUM            = 13;
    
    public static enum SeedCard
    {
        SPADES,
        FLOWERS,
        DIAMONDS,
        HEARTS,
        NULL
    }
    public final static int SEED_SPADES         = 0x00;
    public final static int SEED_FLOWERS        = 0x10;
    public final static int SEED_DIAMONDS       = 0x20;
    public final static int SEED_HEARTS         = 0x30;
    
    public static final int CARD_A              = 0;
    public static final int CARD_2              = 1;
    public static final int CARD_3              = 2;
    public static final int CARD_4              = 3;
    public static final int CARD_5              = 4;
    public static final int CARD_6              = 5;
    public static final int CARD_7              = 6;
    public static final int CARD_8              = 7;    
    public static final int CARD_9              = 8;
    public static final int CARD_10             = 9;
    public static final int CARD_J              = 10;
    public static final int CARD_Q              = 11;
    public static final int CARD_K              = 12;
    
    public final static int SEED_MASK           = 0x30;
    public final static int NUMBER_MASK         = 0x0F;
    
    static String HEARTS_TXT                    = "Hearts";
    static String DIAMONDS_TXT                  = "Diamonds";
    static String FLOWERS_TXT                   = "Flowers";
    static String SPADES_TXT                    = "Spades";
}
